<!-- 资讯详情 -->
<template>
	<view class="container">
		<view class="content">
			<!-- <rich-text :nodes="htmlText" style="width: 91%;"></rich-text> -->
			<!-- <view style="width: 700rpx;font-size: 32rpx;" v-html="imageText"></view> -->
			<!-- line-height: 50rpx;font-size: 35rpx; -->
			<u-parse :html="htmlText" style="width: 91%;"></u-parse>
			<!-- <web-view :src="url"></web-view> -->
		</view>
		<u-toast ref="uToast"></u-toast>
	</view>
</template>

<script>
	var _self;
	export default {
		data() {
			return {
				htmlText: '', //图文
			}
		},
		onLoad() {
			_self = this;
			this.GetParamValueByName()
		},
		methods: {
			//-----------------------------------------------Toast 消息提示-----------------------------------------------
			showToast(title, type) {
				_self.$refs.uToast.show({
					title: title,
					type: type,
				})
			},
			GetParamValueByName: function() {
				uni.showLoading({
					title:'正在加载...'
				})
				uni.request({
					url: _self.$h.expressInterface.expressInterface.GetParamValueByName.url,
					method: _self.$h.expressInterface.expressInterface.GetParamValueByName.method,
					header: _self.$h.expressInterface.expressInterface.GetParamValueByName.header,
					data:{
						ParamName:'旅客端操作手册'
					},
					success: (res) => {
						console.log('详情',res);
						uni.hideLoading();
						if(res.data.Success){
							// _self.htmlText = JSON.parse(res.data.Data);
							_self.htmlText = res.data.Data;
						}else {
							_self.showToast(res.data.Message,'warning');
						}
					},fail:function(res){
						uni.hideLoading();
						console.log(res);
						_self.showToast('服务器错误','error');
					}
				})
			},
		}
	}
</script>

<style lang="scss">
	.container {
		.content {
			width: 750rpx;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
		}
	}
</style>
